package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_SXH"
 *     
*/
public class XtglSxh implements Serializable {

    /** identifier field */
    private String sxbh;

    /** nullable persistent field */
    private String nd;

    /** nullable persistent field */
    private String dwbh;

    /** persistent field */
    private String sxlxDm;

    /** nullable persistent field */
    private String fzlxDm;

    /** persistent field */
    private String sxh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** nullable persistent field */
    private String zt3;

    /** nullable persistent field */
    private String zt4;

    /** nullable persistent field */
    private String zt5;

    /** nullable persistent field */
    private String zt6;

    /** full constructor */
    public XtglSxh(String sxbh, String nd, String dwbh, String sxlxDm, String fzlxDm, String sxh, String zt1, String zt2, String zt3, String zt4, String zt5, String zt6) {
        this.sxbh = sxbh;
        this.nd = nd;
        this.dwbh = dwbh;
        this.sxlxDm = sxlxDm;
        this.fzlxDm = fzlxDm;
        this.sxh = sxh;
        this.zt1 = zt1;
        this.zt2 = zt2;
        this.zt3 = zt3;
        this.zt4 = zt4;
        this.zt5 = zt5;
        this.zt6 = zt6;
    }

    /** default constructor */
    public XtglSxh() {
    }

    /** minimal constructor */
    public XtglSxh(String sxbh, String sxlxDm, String sxh) {
        this.sxbh = sxbh;
        this.sxlxDm = sxlxDm;
        this.sxh = sxh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SXBH"
     *         
     */
    public String getSxbh() {
        return this.sxbh;
    }

    public void setSxbh(String sxbh) {
        this.sxbh = sxbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="SXLX_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getSxlxDm() {
        return this.sxlxDm;
    }

    public void setSxlxDm(String sxlxDm) {
        this.sxlxDm = sxlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="FZLX_DM"
     *             length="10"
     *         
     */
    public String getFzlxDm() {
        return this.fzlxDm;
    }

    public void setFzlxDm(String fzlxDm) {
        this.fzlxDm = fzlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="SXH"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getSxh() {
        return this.sxh;
    }

    public void setSxh(String sxh) {
        this.sxh = sxh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    /** 
     *            @hibernate.property
     *             column="ZT3"
     *             length="50"
     *         
     */
    public String getZt3() {
        return this.zt3;
    }

    public void setZt3(String zt3) {
        this.zt3 = zt3;
    }

    /** 
     *            @hibernate.property
     *             column="ZT4"
     *             length="50"
     *         
     */
    public String getZt4() {
        return this.zt4;
    }

    public void setZt4(String zt4) {
        this.zt4 = zt4;
    }

    /** 
     *            @hibernate.property
     *             column="ZT5"
     *             length="50"
     *         
     */
    public String getZt5() {
        return this.zt5;
    }

    public void setZt5(String zt5) {
        this.zt5 = zt5;
    }

    /** 
     *            @hibernate.property
     *             column="ZT6"
     *             length="50"
     *         
     */
    public String getZt6() {
        return this.zt6;
    }

    public void setZt6(String zt6) {
        this.zt6 = zt6;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("sxbh", getSxbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglSxh) ) return false;
        XtglSxh castOther = (XtglSxh) other;
        return new EqualsBuilder()
            .append(this.getSxbh(), castOther.getSxbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSxbh())
            .toHashCode();
    }

}
